#!/usr/bin/env python
#coding=utf-8
import urllib                                       
sock = urllib.urlopen("http://www.douban.com/people/hexybaby/contact_list") 
htmlSource = sock.read()                            
sock.close()                                        
print htmlSource

logfile = open('test.txt', 'w') 
logfile.write(htmlSource)
logfile.close()  
